(function(){
	angular.module('app')
		.factory('ShowAllQuestionByConsultantIdFactory',fn);
	function fn(urlCnst) {
		var self = {};
		self.showAllAnsweredQuestionByConsultantId = function (consultantId,cb) {
            urlCnst.get("admin-essay/consultantId/" + consultantId + "?isAnswer=true", cb);
        };
        self.showAllUnAnsweredQuestionByConsultantId = function (consultantId,cb) {
            urlCnst.get("admin-essay/consultantId/" + consultantId + "?isAnswer=false", cb);
        };
	    return self;
    }
})();
